import { http } from '@/utils/http/axios';

/**
 * @description: 字典属性列表
 */
export function dictTreeList(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDict/dictTreeList',
    method: 'POST',
    data:params,
  });
}
/**
 * @description: 新增字典
 */
export function saveDict(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDict/saveDict',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 编辑字典
 */
export function updateDict(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDict/updateDict',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 删除字典
 */
export function removeDict(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDict/removeDict',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 分组下的数据
 */
export function dictGroup(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDict/dictGroup',
    method: 'POST',
    data:params,
  });
}
/**
 * @description: 字典KEY的数据
 */
export function dictKey(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDict/dictKey',
    method: 'POST',
    data:params,
  });
}
/**
 * @description: 刷新字典缓存
 */
export function overload() {
  return http.request({
    url: '/moss-cloud-base/base/sysDict/overload',
    method: 'POST',
    data:{},
  }, {
    isTransformResponse: false,
  });
}

